package com.xuanwu.shop.entity;

/**
 * 订单实体类
 * @author ZhangWeiQiang
 *
 */
public class Order {
	private int id;
	private String orderNo; // 订单编号
	private double totalPrice; // 订单的总价格
	private String date; // 创建时间
	private OrderStatus orderStatus; // 订单状态 
	private String address; // 地址
	private int cusId; // 顾客id

	public Order() {
		super();
	}

	/**
	 * �в����췽��
	 * 
	 * @param id ����id
	 * @param orderNo �������
	 * @param totalPrice �ܼ۸�
	 * @param date ����ʱ��
	 * @param statusId ����״̬id
	 * @param address ��ַ
	 * @param cusId �˿�id
	 */
	public Order(int id, String orderNo, double totalPrice, String date, int statusId, String address, int cusId) {
		super();
		this.id = id;
		this.orderNo = orderNo;
		this.totalPrice = totalPrice;
		this.date = date;
		this.address = address;
		this.cusId = cusId;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getOrderNo() {
		return orderNo;
	}

	public void setOrderNo(String orderNo) {
		this.orderNo = orderNo;
	}

	public double getTotalPrice() {
		return totalPrice;
	}

	public void setTotalPrice(double totalPrice) {
		this.totalPrice = totalPrice;
	}

	public String getDate() {
		return date;
	}

	public void setDate(String date) {
		this.date = date;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public int getCusId() {
		return cusId;
	}

	public void setCusId(int cusId) {
		this.cusId = cusId;
	}

	@Override
	public String toString() {
		return "Order [id=" + id + ", orderNo=" + orderNo + ", totalPrice=" + totalPrice + ", date=" + date
				+ ", orderStatus=" + orderStatus + ", address=" + address + ", cusId=" + cusId + "]";
	}

	

}
